package choice_test;

import java.util.Scanner;

public class java_chapter3_exexrcise_2 {

	public static void main(String[] args) {
/*		Scanner in = new Scanner(System.in);
		System.out.println("please input the first letter");
		char ch_1 = in.next().charAt(0);
		if (ch_1 == 'm') {
			System.out.println("monday");
		}
		else if (ch_1 == 't') {
			System.out.println("please input the second letter");
			char ch_2 = in.next().charAt(0);
			if (ch_2 == 'u') {
				System.out.println("tuesday");
			}
			else {
				System.out.println("thursday");
			}
		}
		else if (ch_1 == 'w') {
			System.out.println("wensday");
		}
		else if (ch_1 == 'f') {
			System.out.println("friday");
		}
		else {
			System.out.println("please input the second letter");
			char ch_2 = in.next().charAt(0);
			if (ch_2 == 'a') {
				System.out.println("saturday");
			}
			else {
				System.out.println("sunday");
			}
		}*/
		Scanner in = new Scanner(System.in);
		System.out.println("please input the word");
		String week = in.next();
		char ch_1 = week.charAt(0);
		char ch_2 = week.charAt(1);
		
		if (ch_1 == 'm') {
			System.out.println("monday");
		}
		else if(ch_1 == 't') {
			if (ch_2 == 'u') {
				System.out.println("tuesday");
			}
			else {
				System.out.println("thursday");
			}
		}
		else if (ch_1 == 'w') {
			System.out.println("wensday");
		}
		else if (ch_1 == 'f') {
			System.out.println("friday");
		}
		else {
			System.out.println("please input the second letter");
			if (ch_2 == 'a') {
				System.out.println("saturday");
			}
			else {
				System.out.println("sunday");
			}
		}

	}

}
